package com.ysp.summary.config.exception;

/**
 * @author Administrator
 */
public class ServiceException extends RuntimeException{


    private static final long serialVersionUID = 7282544465714147355L;
    private Integer errorCode;
    private String errorMsg;

    public ServiceException(){
        super();
    }

    public ServiceException(String message){
        super(message);
        this.errorCode = -1;
        this.errorMsg = message;
    }

    public ServiceException(Integer errorCode,String message){
        super(message);
        this.errorCode = errorCode;
        this.errorMsg = message;
    }


    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
